target="../../../../book-to-be-big-fe-deploy/"

for name in "home" "news" "weather"
do
    echo building project $name
    cd ../$name
    rm -R dist
    npm run build
    node ../deploy/pack.js
    cp -r -f ./dist/ $target
done

cd ../deploy
node generateManifest.js